home *** CD-ROM | disk | FTP | other *** search
- Listing 8.
-
- /* complain.hpp - message dictionary handler */
-
- #ifndef COMPLAIN_HPP
- #define COMPLAIN_HPP
-
- class complain_ptr; /* in complain.cpp */
-
- class complaint_dict {
- public:
- complaint_dict(const char *filename);
- ~complaint_dict(void);
- int key_defined(const char *name) const;
- int complaint_text(const char *name,
- char *line,
- int linelen) const;
- const char *filename(void) const
- { return _filename; }
- private:
- char *_filename;
- complain_ptr *complain_table;
- /* unimplemented: */
- complaint_dict(const complaint_dict &other);
- complaint_dict &operator
- =(const complaint_dict &other);
- }; /* end of class complaint_dict */
-
- #endif /* COMPLAIN_HPP */